﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class CONGTY: BusinessObject       
    {

        public string MaCongTy { get; set; }
        public string TenCongTy { get; set; }
        public string DiaChi { get; set; }
        public string DienThoai { get; set; }
        public string Fax { get; set; }
        public string Website { get; set; }
        public string TinhThanh { get; set; }
        public string QuanHuyen { get; set; }
        public string GiamDoc { get; set; }
        public string KeToanTruong { get; set; }
        public string ThuQuy { get; set; }
        public string MST { get; set; }
        public string CoQuanThue { get; set; }
        public string TaiKhoan { get; set; }
        public string NganHang { get; set; }
        public string MauHD { get; set; }
        public byte?[] Image { get; set; }
        public int? CreateBy { get; set; }
        public int? ModifiedBy { get; set; }
        public DateTime? ModifiedOn { get; set; }


        public CONGTY()
        {
            AddRule(new ValidateRequired("MaCongTy"));
            AddRule(new ValidateRequired("TenCongTy"));
            AddRule(new ValidateRequired("DiaChi"));
            AddRule(new ValidateRequired("MST"));
            AddRule(new ValidateRequired("TaiKhoan"));
        }

        public CONGTY(string maCongTy, string tenCongTy, string diaChi, string dienhoai, string fax, string website, string tinhThanh,
                string quanHuyen, string giamDoc, string keToanTruong, string thuQuy, string mST, string coQuanThue, string taiKhoan,
                string nganHang, string mauHD, byte?[] image, int? createBy, int? modifiedBy, DateTime? modifiedOn)
            :this()
        {
            MaCongTy = maCongTy;
            TenCongTy = tenCongTy;
            DiaChi = diaChi;
            DienThoai = dienhoai;
            Fax = fax;
            Website = website;
            TinhThanh = tinhThanh;
            QuanHuyen = quanHuyen;
            GiamDoc = giamDoc;
            KeToanTruong = keToanTruong;
            ThuQuy = thuQuy;
            MST = mST;
            CoQuanThue = coQuanThue;
            TaiKhoan = taiKhoan;
            NganHang = nganHang;
            MauHD = mauHD;
            Image = image;
            CreateBy = createBy;
            ModifiedBy = modifiedBy;
            ModifiedOn = modifiedOn;
        }
    }
}
